﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace V2.PaidTimeOffDAL.Framework.Reports
{
    public static class ReportENTRoleData
    {
        public static List<ReportRoleCapabilityResult> SelectCapabilities()
        {
            using (HRPaidTimeOffDataContext db = new HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOffConnectionString()))
            {
                return db.ReportRoleCapability().ToList();
            }
        }

        public static List<ReportRoleUserAccountResult> SelectUserAccounts()
        {
            using (HRPaidTimeOffDataContext db = new HRPaidTimeOffDataContext(DBHelper.GetHRPaidTimeOffConnectionString()))
            {
                return db.ReportRoleUserAccount().ToList();
            }
        }
    }
}
